package com.way.v2;

import com.way.v1.Member;

/**
 * @author 魏彪
 */
public class MemberService {

    public void login(String loginName, String loginPass) {
        Handler.Builder<Member> builder = new Handler.Builder<>();
        builder.addHandler(new ValidateHandler())
                .addHandler(new LoginHandler())
                .addHandler(new AuthHandler());

        builder.build().handle(new Member(loginName, loginPass));
    }
}
